export const IGNORED_WINDOW_KEYWORDS = [ 'NVIDIA Overlay', 'Twinkle Tray Panel' ] as const const normalizedIgnoredWindowKeywords = IGNORED_WINDOW_KEYWORDS.map(keyword => keyword.toLowerCase()) interface WindowLike { title?: string | null path?: string | null } export const isIgnoredWindow = ({ title, path }: WindowLike) => { const normalizedValue = `${title ?? ''}\n${path ?? ''}`.toLowerCase() return normalizedIgnoredWindowKeywords.some(keyword => normalizedValue.includes(keyword)) } export const filterIgnoredWindows = (windows: T[]) => { return windows.filter(window => !isIgnoredWindow(window)) }