element.style.display = "none";
Alternatively, if you need to target a different element, you would give it an ID in the Identity Inspector, and then use this code:
hypeDocument.getElementById("yourElementID").style.display = "none";
Whenever possible, Hype tries to make it so you can use standard code with the DOM.
I won’t knock Edge’s targeting, but I will say that in general we took the approach of interactions without code for as much as possible (hence @MarkHunte’s solution which requires no code). Edge required code for every interaction so they needed to improve the way users wrote that code, a feature that came much later in their life.
We’re always wanting to work in good features!