I consider them friends of the garden. They do a lot of digging and aerating in my clay soil. Most of the time, their tunneling doesn't disturb the vegetables, and they have yet to manage to eat ALL of the earthworms even sharing with the robins.
One summer, I one had cutworms lopping down my cucumber and bean seedlings, and hadn't been able to dig them up/find them. But then, one morning, I noticed there was a mole tunnel next to a cucumber seedling (still standing).... And no more cutworm casualties past that seedling nor anywhere in the vicinity from then on.
They say that voles use the mole tunnels, and that can be bad. I think occasionally, chipmunks make use of the mole tunnels by expanding them. But that's about it.
Putting a compost pile in a middle of a bed for a couple of months attracts a lot of worms and moles dig underneath for them, so that all the good nutrients from the compost pile leach deep into the ground underneath, and when I move the pile aside to plant, it's a joy to just rake up the loose fluffy stuff. No digging needed except to distribute and level the area. I call it my "Wannabe-Chicken Tractor" since I can't keep chickens in my suburban garden.