const isBrowserTabFocused = () => !document.hidden;