type with 2 entites

Is there a way to run this? execute at @s run tag @n[distance=2..151,type=villager,type=player] add found I want it to tag the nearest player/villager

Continue to help post