Despite what the ads say, ultrasonic devices do not work. Sure the mice (and bats and mosquitoes) can hear it but they don’t fear it and quickly tune it out. The sound of your footsteps is much more frightening for a mouse.
I’ve tried confusing bats by sending high powered pulses of ultrasonic energy at them. Nothing! They are so sophisticated! Their chirp is comprised of 2 or 3 different ultrasonic frequencies and each bat has its own combination! That is how hundreds (thousands) of bats can fly out of a narrow opening in a cave without colliding into the walls or its neighbor. They know their own voice and can pick it out from dozens of others firing at the same time.
I am but a simpleton. I can copy one bat voice and play it back and maybe see one bat move unexpectedly. Maybe.
Female mice respond to the ultrasonic distress call of a pup. And while females can identify their own pups they will come to the aid of any pup that calls for help. A constant tone does not sound like a pup.
Mosquitoes just laugh. They are looking for the CO2 plume you leave behind when you exhale. They can smell you when they are downwind. But when they are upwind they can see the CO2 and water vapor you give off since it looks black under IR light.
Keep the traps out. Like chipmunks, mice, no matter how cute, are not your friends.