Would type annotations make sense here? E.g. `/** @type {HTMLCanvasElement} */`?