Is there any way to use the Javascript helper in Typescript?

public/index.html in my react project

<script src=""></script>

but I can’t use window.Twitch
Is this just because Twitch Extension does not yet support Typescript?

I solved it by putting global.d.ts in my code root directory
This is the only code

import "twitch-ext";

I’m sorry to ask you a stupid question