How do I use "window.Twitch.ext" in angular for using the Configuration Service?

I tried adding it to the Head as well, but got the same error.
I am Trying to access from a component in the project.