• Installs development tools and extensions

    Conditionally installs Electron DevTools extensions based on the current environment. Only activates in development mode to avoid unnecessary overhead in production builds. Logs success or failure for debugging.

    Returns Promise<void>

    Resolves when extensions are installed or skipped

    export async function installExtensions(): Promise<void> {
    try {
    if (inDevelopment) {
    const name = await installExtension(REACT_DEVELOPER_TOOLS);
    console.log(`Extensions installed successfully: ${name}`);
    saveLog(`Installed developer extensions: ${name}`, "DEBUG");
    }
    } catch (err) {
    console.error("Error installing extensions:", err);
    saveLog(`Error installing extensions: ${err}`, "ERROR");
    }
    }