There are many causes of night sweats, and different treatments are needed for different causes.
For example, tuberculosis is commonly treated with the drugs isoniazid, rifampin, ethambutol, pyrazinamide, etc.
For hyperthyroidism, treatment with drugs, surgery or radioactive iodine 131 is commonly used.
For rickets, it can be treated with vitamin D as prescribed by the doctor.