Hello! I have use the library to work on typescript files and everything works great but recently I had to go back to a few files that are written on JS and I have been trying to get autocompletion to work.
For now I was able to get it working with a solution based on this link:
https://blog.8bitzen.com/blog/23-09-2022-using-jsconfig.json
It consists of adding JSDocs pointing to the d.ts files like so:
/**
* @NApiVersion 2.1
* @NScriptType Restlet
* @NModuleScope SameAccount
*/
define(['N/log', 'N/search'],
/**
* @param {import('../../../node_modules/@hitc/netsuite-types/N/log')} log
* @param {import('../../../node_modules/@hitc/netsuite-types/N/search')} search
*/
function (log, search) {
Which seems a little bit hacky but allows autocompletion to work

Is there another approach to make this work?
Hello! I have use the library to work on typescript files and everything works great but recently I had to go back to a few files that are written on JS and I have been trying to get autocompletion to work.
For now I was able to get it working with a solution based on this link:
https://blog.8bitzen.com/blog/23-09-2022-using-jsconfig.json
It consists of adding JSDocs pointing to the d.ts files like so:
Which seems a little bit hacky but allows autocompletion to work
Is there another approach to make this work?