gleam-ts-mode is a major mode for Emacs 29 or higher.

If you are using MELPA you can install it like so:

(use-package gleam-ts-mode
  :ensure t
  :mode (rx ".gleam" eos))

See the documentation for the mode for other installation methods and considerations.