Detect if user has muted tab?
This is not possible for JavaScript on websites.
But, browser extensions can detect it using the Tabs API.
Learn more: https://developer.chrome.com/extensions/tabs#type-MutedInfo https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/Tabs/MutedInfo
No, this is not possible in Google Chrome.
Such events can be recorded using low-level APIs expoosed by Chrome but it cannot be done via any of the Web APIs available.