npm install -g typescript
npm install --save-dev @figma/plugin-typings
# Using TypeScript requires a compiler to convert TypeScript (code.ts) into JavaScript (code.js)
npm run build -- --watch
- figma plugin docs: https://www.figma.com/plugin-docs/setup/