Cosmology on the largest scales with intensity mapping