Get channel is being watched

Then you are looking at the extension on the same twitch page.

You cannot “see” if a viewer is on/watching a different channel.
If that channel doesn’t also have the etension installed.
Then all you know is that they have loaded your extension.

There is no Twitch API to know what someone is watching.
And all an extension will do is.tell you that they have the page loaded