index ts nextjs code example Example: next js typescript // create a tsconfig touch tsconfig.json // run command `npm run dev` npm run dev