typescript
/** @type HTMLAnchorElement */ // 直接在变量上方标注类型
const a = el;
/** @type {import('types/helper').Headers} */ // 这里也可以使用 import 来引用其他文件中的类型
const b = el;
/**
* 标注参数类型以及返回值类型
* @param {number} a
* @param {{
* b?: string;
* }} [opts]
* @returns {2}
*/
const c = (a,{b})=>2