npm init tsconfig code example Example 1: tsc init tsc --init npx tsc --init Example 2: create typescript project npx tsc index.ts