define all jsdoc typedef in a seperate file
// user.js
const checkAge = require('./user-helper')
/**
* @typedef {Object} User
* @property {string} name
* @property {number} age
*/
/**
* @param {User} user
*/
const createUser = (user) => {
if (checkAge(user)) {
db.save(user)
}
}