Could not find a declaration file for module 'joi'

Essentially, this got printed onto my console whenever I tried using Joi :

ReferenceError: Joi is not defined

For reference, I am on Windows using Joi@13.1.0 . It doesn’t just not work on one project, but all the projects from this Node course that uses Joi. I didn’t find out about this issue before because I was using Linux before.

Ps: The title is the error message that is shown on VSCode. I redownloaded Joi just before making this post incase any packages may have fallen through somehow, no luck.