I used Jettison for a while.
https://www.stclairsoft.com/Jettison/
Clean My Drive has similar functionality, and it’s free.
These may be relevant for @margaretamartin too, as they have an auto eject function, and she mentioned having to wait for her Time Machine drive to eject