open_in_new
content_copy
const isBrowserTabFocused = () => !document.hidden; // Example isBrowserTabFocused(); // true