It's terrible for the battery if you keep your laptop plugged in throughout all the time. If you want a long-lasting battery, don't leave it on constantly. Take proper care of it by ensuring that you prevent heat from reaching and damaging its internal components, as well as unplugging when not using for an extended period because this can lead to a too-short life for your device's power source.