The following is an alternative way to run a Typescript program in IntelliJ. In my eyes this is easier than described here: https://www.jetbrains.com/help/idea/running-and-debugging-typescript.html#ws_ts_run_directly_launch

What to install

Install typescript (node.js also required, of course):

sudo npm install -g typescript
sudo npm install -g node-ts

whereis ts-node

How to setup IntelliJ

Now edit a configuration in IntelliJ like this:

If we now take a very simple Typescript-program, it can be easily run:

And, before you ask, also debugging works with this setup.