To rest the esophagus, the patient should receive nothing per os (NPO) for 24 to 48 hours.