The @param tag only works at the block level, not inline. You need the @type tag.
function toggleButton(
/**@type {HTMLButtonElement}*/ btnEl,
/**@type {function():void=}*/ callbackFn
) { }
Here's what the Intellisense from vscode looke like