I wait 3 to 4 days from the roast date, before using or freezing.
My go to local roaster delivers within 2 days of email (another 2 lbs please) and if urgent, will deliver same day.
I always work to keep a pound or two in the freezer. So I rarely use an absolutely fresh bag. I order, wait 3 days, then freeze. And record the roast date, freezing date, unfreezing date and opening date on each bag and/or the canister. And use the earlier frozen bags first.
When freezing coffee, I place those silica moisture absorbing packets in a sealable plastic bag with the coffee bag, use a straw to suck all the air out, seal and then masking tape shut. Then freeze. I wait until the bag is well unfrozen and room temp, before opening for use.
I probably should buy a vacuum bag sealer or similar, but my wife would not likely appreciate yet another “toy” in the kitchen; maybe in the basement. :)