import "@johnlindquist/kit"
browse('https://meet.new')
let count = 1
let tab = ''
while (count < 20) {
await wait(500)
tab = await getActiveTab("Brave")
if (!tab.startsWith('https://meet.google.com/new') && !tab.startsWith('https://meet.new')) break
count += 1
}
tab = tab.split('?')[0]
await copy(tab)
await focusWindow('Slack', '')
await setSelectedText(tab)