Coffee storage aims to limit avoidable exposure to air, moisture, heat and light. A cool cupboard away from appliances is often a more sensible location than a bright counter. The source also discusses degassing valves, which allow gas to leave suitable packaging without treating an open bag as the answer to freshness.
Choose a clean container that closes reliably and suits the size of your supply. An opaque container avoids an extra light-exposure question, while a clear one can be kept in a dark location. Clean it before a new coffee so that old residues do not become part of the next bag's aroma.
Buying a manageable quantity reduces the storage problem itself. If keeping coffee for longer, use a deliberate portioning and storage plan rather than repeatedly exposing the same supply to temperature changes and condensation. Judge the result in the cup and keep track of roast and opening dates. No container turns a large, indefinitely stored purchase into permanently fresh coffee.
The conversation
A good question can make a better brew.