A bundler (Vite, esbuild) resolves modules, transpiles and tree-shakes. ESLint catches likely mistakes, Prettier removes formatting debate, and even in plain JavaScript, JSDoc types give editor checking.
/** @param {bigint} wei @returns {string} */
export function format(wei) { /* ... */ }Run lint and tests in CI so a broken build never reaches a deploy.