Install and use this widget here: https://www.figma.com/community/widget/1044462585017609844
Import this widget's manifest via the "Import widget from manifest" command in FigJam.
Run the following commands in your shell:
# install dependencies (you only need to do this once)
npm ci
# build code.tsx -> dist/code.js and run tsc in watch mode
npm run dev
Learn more about widgets here: https://www.figma.com/widget-docs