How to train cursor to use certain npm library's i use?

Locate the websites/githubs that contain the docs…

“Ctrl + P” “>” “newdocs”

You also find this under Settings > Features > Docs