To close your account, please go to My Account → Profile → Player Protection and select Self-Exclusion.
Once self-excluded, you will be logged out immediately and will not be able to log in for the chosen duration (6 months, 1 year, 2 years, 3 years, 4 years, or 5 years).