Howto get cursor to see typedefs in node_modules?

is there any way to get cursor to check itself against typedefs in node_modules? also, webstorm will automatically fix missing imports, is there an equivalent in cursor?