RecruitingPhase 4Drug trialMagnesium-L-Threonate for Sleep Quality Post-ArthroplastyThe study team is conducting a study to see if Magnesium-L-Threonate (MgT) can help improve how well participants sleep and reduce pain after total joint replacement surgery