I think it's not very intuitive what the parameter that you pass to `toggleAlarm` and `isEnabled` means. How about we change the interface to

    alarm.toggleAlarm({ index: 0 });
    alarm.isEnabled({ index: 0 });
?