The recommended approach is to leave it plugged in and charge it to around 85% only. Remove it from the charger when you need to do that and then reconnect it when back. This reduces the number of charge cycles which is a measure of how much use the battery has had. If you are going away from the charger for a longer period, then you can make sure you charge it to 100%. This approach is better than running it down each day and then recharging at night. I think people have talked about Coconut Battery which is the standard for monitoring your battery and replace the Apple battery icon in your menu bar. You need to keep cycles down and health up which is obvious and this approach will help with that. I have several laptops and my 5 year old 16" M1 Max has 147 cycles and a battery health of 93% (ie it holds 93% of its original capacity) at this point which is considered good, using this method.