import { webContents } from "electron" export const broadcast = void>>(event: keyof T, ...args: Parameters) => { webContents.getAllWebContents().forEach(browser => browser.send(event as any, ...args)) }