since `snooze` and close are basically the same thing what about creating a 3rd method (private) that accepts the *action* as argument? - do you think it's premature abstraction?

side note: it also felt weird to me that we need to pass the `type` + `id` on `this.activeAlarm.close` and `this.activeAlarm.snoozeAlarm`... looks simpler to just pass the `alert` itself and let the method decide which properties it needs. - it's ok to keep it like this, just a comment that it felt weird to me.