What does trim the lamp mean?

The phrase "trim the lamp" typically refers to the action of cleaning and refilling an oil or kerosene lamp, specifically adjusting the wick to ensure a good flame and removing any excess soot or debris. In a broader sense, it can metaphorically signify taking care of a light source, being attentive to details or preparing for a task or event.