Use the once option to automatically remove a listener after it fires once.
button.addEventListener("click", handleClick, {
once: true
});
// Handler runs once, then is automatically removed
Perfect for one-time setup actions or first-interaction handling.