import "@johnlindquist/kit";
const { hri } = await npm("human-readable-ids");
const newMeetingSlug = hri.random();
const newMeetingUrl = `https://meet.jit.si/${newMeetingSlug}`;
await copy(newMeetingUrl);
const shouldBrowse = await arg("Do you want to open the link?", [
{ name: "No", description: "💾 - just copy", value: false },
{ name: "Yes", description: "💾 + ↗️ - copy and open", value: true },
]);
shouldBrowse && browse(newMeetingUrl);