adb – Plug Android smartpone into PC without loading | LineageOS

I am using my main smartphone for developing Android apps and doing research.
I set everything up and searched for a specific option under USB Preferences, when connected to my computer.
As I don’t want to drain the capacity of my smartphone, I’d kinda like an option like Data transer, but do not load, so that the battery can have normal battery cycles instead of always staying at 100% because it’s connected to my computer.
However, I didn’t find anything in the preferences or on the internet.

Does anyone know if there is an option for enabling adb to still function but disable charging while connected to the computer?

Btw, I am using LineageOS 17.1.