Check the Microsoft Visual Studio Code - it's a small editor, pretty useful for Typescript. Has the best support for Typescript. If you hover over variables it will tell you the type by itself.
Typescript compiler by default tries to help as much as possible, so if you're setting up the variable like :
let abc = 'ABC';
you don't have to specify the type (it will automagically detect that this is a string). For array generics it's bit more complex, it will loop through all keys in array pick every key type. for example you can have:
let test = ['test', 123];
And this array will get typed to Array<string|number>
The web tool is pretty useful for quick checking but if you work on bigger projects you won't copy&paste files into browser window. PHPStorm/WebStorm has pretty good TS support but sadly it won't tell you variable types - Microsoft Visual Studio Code will do.
And a nice thing about VisualStudioCode -> it free and written in Typescript ;)