Imagine that you find your child (13) at 12 o'clock at night playing a game with friends on the laptop, even though they have promised to go to bed at 11:30.
What would you do?
So educationally sensible and in such a way that the child would not be extremely angry and a sensible solution comes out.
I would ignore the situation and make the promise again the next time. Then add that the router is switched off shortly afterwards in order to "save electricity".
You can set the internet times. As such, he shouldn't have any argument against it because he promises to stop before that.
Pull the plug, done.
It's too late now. Next you ask him what value his promises to you will be in the future. Whether he will be more credible in the future or whether his friends will always be more important than his family. Whether he trusts you or wants more control.