fix(ts-plugin): only inject Astro types into Astro projects (#17668)