import { spawn } from "node:child_process";
export function openInBrowser(url) {
    if (process.platform === "darwin") {
        const child = spawn("open", [url], { detached: true, stdio: "ignore" });
        child.unref();
        return;
    }
    if (process.platform === "win32") {
        const child = spawn("cmd", ["/c", "start", "", url], { detached: true, stdio: "ignore" });
        child.unref();
        return;
    }
    const child = spawn("xdg-open", [url], { detached: true, stdio: "ignore" });
    child.unref();
}
//# sourceMappingURL=browser.js.map