citext is an extension, so you have to install it: CREATE EXTENSION citext;
That's the simplest form. you can install it into a specific schema, test for existence, etc. Check out the CREATE EXTENSION docs here: https://www.postgresql.org/docs/current/sql-createextension.html