Could not find a declaration file for module 'stimulus'

TypeScript shows the following warning when I import the stimulus Controller. It’s not critical, though I wonder if there’s a way to resolve it?

Could not find a declaration file for module 'stimulus'. '/Users/adam/Projects/languageinnovation/clozemaster/node_modules/stimulus/dist/stimulus.umd.js' implicitly has an 'any' type.
  Try `npm install @types/stimulus` if it exists or add a new declaration (.d.ts) file containing `declare module 'stimulus';`ts(7016)

Ok, importing stimulus like this did the trick:

import { Controller } from '@stimulus/core'