import open from 'open'; import { Main } from '../src/main.js'; import { logConsole } from '../src/util.js'; function openUrl(target: string): Promise { return open(target, { wait: true }); } function run() { const opts = { log: logConsole, openUrl: (url: string) => { return open(url, { wait: true }); }, }; const main = new Main(opts); return main .init() .then((resp) => { return main.auth(); }) .then((resp) => {}); } run();