The npx command is actually npx create-strapi-app@beta my-app --ts without the brackets.
npx create-strapi-app@beta my-app --ts