You can use a show rule that removes the supplement from the Reference Function – Typst Documentation. At the start of the show rule I check if the supplement is (already) none to avoid an infinite recursion. This will affect all references with @..., ref(...) and cite(...).
#show ref: it => {
if it.supplement == none { return it }
ref(it.target, supplement: none, form: it.form)
}
If you only want to target actual citation references, the show rule is
#show cite: it => {
if it.supplement == none { return it }
cite(it.key, supplement: none, form: it.form, style: it.style)
}
Personally, I would however just use actual comments if you never want them to show up in the rendered document anyway. The syntax highlighting alone makes it worth it to type the two additional characters (in my opinion).
This is @myreference[comment] with a show rule.
This is @myreference/*comment*/ with a comment.