Make sure you have Node.js installed either from the nodejs.org page or via HomeBrew (brew install node).
You’ll also need yarn set up in order to run this code. You can get yarn with:
npm install -g yarnCreate a new Next.js app (it will prompt for a name)
yarn create next-app --typescriptOpen your directory and run the server! (replace my-app with whatever you named your app)
cd my-app
yarn dev
open http://localhost:3000
Also using VSCode for Typescript development is great (probably because VSCode itself is written in Typescript)