"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.openBrowser = void 0;
const node_child_process_1 = require("node:child_process");
const openBrowser = (url) => {
    try {
        const command = process.platform === 'darwin' ? `open "${url}"` :
            process.platform === 'win32' ? `start "" "${url}"` :
                `xdg-open "${url}"`;
        (0, node_child_process_1.exec)(command);
    }
    catch (error) {
        console.error('Failed to open browser:', error);
    }
};
exports.openBrowser = openBrowser;
