I’m with susanc, thinking that surely you all are talking about after it’s been cut.
As far as before it’s opened, keeping them in the refrigerator will definitely slow down the aging process, but the trick is that if you put an avocado in the fridge before it’s completely ripe, it will not fully ripen, so you should keep them outside the fridge until you judge that they are “almost ripe” based on softness. You will know it’s almost ripe because the skin should give a little, and this will also vary depending on personal taste, but at that point you should put it in the refrigerator, and it should be good for another 2 or 3 days.