export const bindToWindow = (key: string, value: T): void => { if (typeof window !== "undefined") { (window as unknown as Record)[key] = value; } };