This plugin counts characters and words in text layers.
If you haven't, install TypeScript using the command:
npm install -g typescript
In the directory of your plugin, get the latest type definitions for the plugin API by running:
npm install --save-dev @figma/plugin-typings
Feel free to contribute!