This is a bit of tricky one for me cause IMO discipline is supposed to teach, not punish. A child doesn't have capactiy to understand responsibility, safety, socially acceptable behaviour so the job of a parent is to teach a child those things and that actions have consequences (which imo, is really not something we teach enough of nowadays but that's besides the point).
You shouldn't need to tell your husband when to go to bed cause he should already know that he needs sleep cause it's important. A child won't know that. Or at the very least, an adult would know that they're experiencing consequences of their own actions and it is their own fault. You can't expect a child to have the self control or knowledge to get off their phone/game and go to bed or else they will be tired tomorrow. I don't think their brain is developed enough to make the action (staying up late) vs. consequences (being tired) leap. If i stay up late on my phone and i'm tired the next day that's my responsibility but I am a grown woman who absolutely knows better.
I agree that taking the computer password away is not abusive but I also think the punishment has to fit the crime and the child because otherwise a child will behave out of not wanting to get punished rather than understanding why. So many times as a kid (i am autistic though so maybe this plays a role here) I would or wouldn't do something not cause I understood why, I just knew that xyz would happen if I did. I personally would have preferred to have someone say "you have to do this/you can't do that because xyz'. It does depend on the child though.
I also think some parents punish kids for either stupid reasons or punish kids so much that it loses severity. I had a friend who had such strict parents, they would punish her for not being ready on time, punish her for not doing homework, punish her for forgetting to do a chore, punish her for her room being a mess. It was relentless. She spent most of her teen years grounded/no phone/no laptop/no friends etc.. She never actually learned her lesson though cause she was never actually taught anything. She's now nearly 30 and still consistenly late and disorganised. She did a college course and would do the assignments the night before they were due despite the years of grounding for not doing homework. If she's going on holiday she will pack the suitcase 45 minutes before she's due to leave.