How to “import” a typedef from one file to another in JSDoc using Node.js? February 22, 2023 by Tarik Import the declared type in your file File2.js using the function import. const persons = require('./File1.js'); /** * @typedef {import('./File1.js').MyObject1} MyObject1 */ class File2 { ... It works for me.