How would you react if your son (regardless of age from Monday to Sunday from 2 p.m. To 4 a.m. In front of the laptop or computer?
If he is a minor I would have a serious conversation with him and in case of doubt confiscate the computer or turn off the WLAN.
Why regardless of age? It depends whether / what you do. If he is a minor, I would take the laptop from him or cut the Wi-Fi, he would only have both available by the hour - after consultation with me.
When he grows up I wonder how he would have the time - because ideally he would work. In any case, you can't impose sanctions or something, but you can talk to him or try to animate him to do something else (hobbies, sports, friends in RL)
Does he make his own living? Then it's his business.
Does he live at your expense? Or unemployed? Then I would pressure him to change something about this condition. Consider kicking out if necessary.
University student? If he sits in front of the laptop to study, that's ok. If he is just paddling around: See previous paragraph.
Even if the person wouldn't pay rent?
Ok, so grown up and still living at home? Then your rules apply and if it doesn't suit him, he can move out. Electricity and Wi-Fi could be billed in any case.
I have more and more the impression that the questioner is even this son.
I have more and more the impression that you can't read and judgment…
If he just gambles all day or watches YouTube ect I wouldn't accept that. As long as he has his feet under my table, he also has something to help at home. There's plenty to do with us. It is independent of age. I do not play the fool at home with us and do everything alone, especially when everyone is at home and have time! That has never happened to me and will not exist!
I did not judge, I only gave an impression. If I was wrong, so much the better.
Why do you have such an impression? Because I wrote "would" and give hardly any information about the person?
With a minor who pays the small rent, I would intervene and speak to him… With someone who pays rent and in the case is probably already eighteen, I would tease him every now and then in order to do something with you… But you have to also easy to consider (is not specific to this question now) except what to do with the family, what else to do immoment… Everything is closed.
Intuition. If I was wrong, I'm sorry.
All good. No problem.