With Valet+, it’s possible to define a custom set of environment variables for a site. This could conceivably make it possible to have a single set of files run multiple sites.
One obstacle to overcome would be using WP CLI with such a setup.
Further up and further in