A 50-year-old woman is evaluated for a 4-year history of progressively worsening cognitive function. She now has frequent memory deficits and a decreased ability to concentrate and multitask in her work as a lawyer; she has been reprimanded in recent months by her employer for submitting late and disorganized briefs. She has no other symptoms. The patient has a 15-year history of multiple sclerosis and a 5-year history of depression. She reports that her mood is good, and she is not experiencing her typical symptoms of depression, including anhedonia, depressed mood, and sleep disturbance. Medications are dimethyl fumarate, a vitamin D supplement, fluoxetine, and modafinil.

Physical examination reveals a pleasant, interactive woman. Vital signs are normal. Mild gait ataxia is noted. Mental status examination reveals moderate deficiencies in short-term memory, processing speed, and attention.

An MRI of the brain obtained 2 weeks ago showed multiple white matter lesions consistent with multiple sclerosis, with no significant change from an image obtained 1 year ago.

Which of the following is the most appropriate treatment of this patient's cognitive difficulties?