Download nodejs if you have not already. Open a terminal (powershell or the command line) and insert following instructions.
to install typescript: npm i -g typescript
to initialise project: npm init -y
to compile typescript file: tsc .\index.ts
to run javascript in node.js: node .\index.js
install readline-sync: npm i --save readline-sync
install typescript types for readline-sync: npm i --save @types/readline-sync
project from: https://www.youtube.com/watch?v=L02BfvA7mgA&list=PL41PQx5PPbt6OheJQkg-QNROfx9j75MuR&index=3