FedEx hiked its 2023 earnings forecast on Thursday, citing cost-cutting measures that offset continued demand weakness.