I think it takes a bit of trial and error with the toys, honestly. My cat loves to play by herself at night so we leave out some balls that are infused with catnip and her favorite fox toy and she’s content mostly all night but training them to not bother you while you’re sleeping is definitely a big part of it.
This is the toy from Amazon btw :) https://www.amazon.com/Migipaws-Interactive-Indoor-Kittens-Automatic/dp/B09KZCYBZ4/ref=mp_s_a_1_4?crid=FPYDKCYQO8X4&keywords=cat+shell+toy&qid=1681916441&sprefix=cat+shell+toy%2Caps%2C159&sr=8-4