There are two ways of running and debugging TypeScript:
Run TypeScript directly using ts-node
This article describes both ways using Visual Studio Code and WebStorm.
All examples presume that your main file is index.ts.
Get monthly updates about new articles, cheatsheets, and tricks.