typescript current version code example Example 1: install typescript npm install -g typescript Example 2: how to check typescript version tsc --version