1. If you have clicked the link, remove all apps connected to Twitter in Security and Account Access.
2. Change your password after removing all apps.
3. Enable 2FA (Two-Factor Authentication).
https://help.x.com/en/managing-your-account/two-factor-authentication
4. Do not blame those who have clicked the links and are sending these links; they are victims of this virus. Do not report them! Do not block them!
5. If you are locked out from your account and can't regain access, contact support by this form:
https://help.x.com/en/forms/account-access/regain-access/hacked-or-compromised